package com.itbaizhan;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/*配置类如何代替xml中AOP注解支持？

在配置类上方添加@EnableAspectJAutoProxy即可*/
/*放进spring容器*/
@Configuration
//扫描包
@ComponentScan("com.itbaizhan")
//代替xml中AOP注解
@EnableAspectJAutoProxy
public class SpringConfig {
}
